extends GrabNode2DComponent
class_name PlayGrabNode2DComponent

@export var place_action:String
@export var grab_action:String

func _ready() -> void:
	super._ready()
	monitoring = false

func _process(_delta: float) -> void:
	if grab_action:
		if Input.is_action_just_pressed(grab_action):
			monitoring = true
	if !grabed_node2d:
		return
	if place_action:
		if Input.is_action_just_pressed(place_action):
			stop_grab()
